{extends file="backend/index.tpl"}
{block name="page-content"}
<div class="page-header">
    <div class="icon">
        <span class="ico-pen-2"></span>
    </div>
    <h1>BÁO CÁO CHƯƠNG HỎNG <small>QUẢN LÝ BÁO CÁO CHƯƠNG HỎNG</small></h1>
</div>
<div class="row-fluid">
    <div class="span12">
        <div class="block">
            <div class="head dblue">
                <div class="icon"><span class="ico-layout-9"></span></div>
                <h2>Danh Sách Chương Hỏng</h2>
                <ul class="buttons">
                    <li><a href="#" onClick="source('table_sort_pagination'); return false;">
                        <div class="icon"><span class="ico-info"></span></div>
                    </a></li>
                </ul>
            </div>
            <div class="data-fluid">
                <table class="table lcnp" id="listGame" cellpadding="0" cellspacing="0" width="100%">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Chapter ID</th>
                            <th>Truyện</th>
                            <th>Chương</th>
                            <th>Ngày</th>
                            <th>Demo</th>
                            <th width="80" class="TAC">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                    {foreach from=$listChapterError item=chapterError}
                        <tr class="edit_tr">
                            <td width="5%">{$chapterError.id}</td>
                            <td width="20%">{$chapterError.chapterID}</td>
                            <td width="20%">{$chapterError.book_name}</td>
                            <td width="20%">{$chapterError.chapter_no}</td>
                            <td width="20%">{$chapterError.date}</td>
                            <td width="20%">
								<a href="{$chapterError.url}" target="_blank">
                                    <button class="btn btn-warning" > View</button>
                                </a>
							</td>
                            <td width="10%">
                                <a href="{$base_url}admin/chapter/deleteChapterError/{$chapterError.id}" class="button red" onclick="return confirm('Bạn có muốn xóa tiếp không?')">
                                    <div class="icon"><span class="ico-remove"></span></div>
                                </a>
                            </td>
                        </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{/block}
